﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestThrift.Interface;

namespace Thrift.Server
{
    public class TestsService : TestService.Iface
    {
        public bool TestBoolean(bool para)
        {
            Console.WriteLine(string.Format("{0} 客户端调用了HelloBoolean方法", para));
            return para;
        }

        public int TestInt(int para)
        {
            Console.WriteLine(string.Format("{0} 客户端调用了HelloInt方法", para));
            return para;
        }

        public string TestNull()
        {
            Console.WriteLine(string.Format("客户端调用了HelloNull方法"));
            return null;
        }

        public string TestString(string para)
        {
            Console.WriteLine(string.Format("{0} 客户端调用了HelloString方法", para));
            return para;
        }

        public void TestVoid()
        {
            Console.WriteLine("客户端调用了HelloVoid方法");
        }
    }
}
